<?php
ini_set('display_errors','on');
include '../SinglePHP.class.php';
$config = array();
if (file_exists('../config.php')) {
    $config = include '../config.php';
}else{
    if($_GET['c'] != '' && $_GET['c'] != 'Install'){
        header('Location: /admin/index.php?c=Install');
    }
    $config['PATH_MOD'] = 'NORMAL';
    $_GET['c'] = 'Install';
}
$config['APP_PATH'] = './';
SinglePHP::getInstance($config)->run();
